---------------------------------------------------------------
File name   :  vv_ahblite_master.e
Title       :  The master implementation.
Project     :  vv_ahblite UVC
Developers  :  stefan,filip
Created     :  27.07.2011.
Description :  This file implements the master unit.
Notes       :  
---------------------------------------------------------------
Copyright  (c)2011
---------------------------------------------------------------

<'
package vv_ahblite;

extend vv_ahblite_master {
    
    -- Ensure that the master monitor gets rerun when reset is asserted
    -- during the test.
    reset_start() is also {
        message(LOW,"Start Reset...");
        --agent_monitor.reset_start();
    };
    
    reset_end() is also {
        message(LOW,"End Reset...");
        --agent_monitor.reset_end();
    };
    
    when ACTIVE vv_ahblite_master {
    
        -- Ensure that the master driver and BFM get rerun when reset is asserted
        -- during the test.
        reset_start() is also {
            driver.rerun();
            bfm.reset_start();
        };
    
        reset_end() is also {
            bfm.reset_end();
        };
    
        -- Emit the driver clock
        on clk {
            emit driver.clock;
        };
    };
      
};

'>
